import type { Metadata } from "next";
import { Inter } from "next/font/google";
import "./globals.css";
import Navbar from "@/components/layout/Navbar";
import Footer from "@/components/layout/Footer";
import Script from "next/script";

const inter = Inter({ subsets: ["latin"] });

export const metadata: Metadata = {
  title: "百善家政 - 专业家政服务",
  description: "百善家政提供专业的家政服务，包括保洁、月嫂、育儿嫂、养老护理等服务，让您的家更温馨、更舒适。",
  keywords: "家政服务, 保洁, 月嫂, 育儿嫂, 养老护理, 家庭服务",
};

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="zh-CN">
      <head>
        <meta name="viewport" content="width=device-width, initial-scale=1" />
        <link rel="icon" href="/favicon.ico" />
        <Script id="schema-organization" type="application/ld+json">
          {`
            {
              "@context": "https://schema.org",
              "@type": "Organization",
              "name": "百善家政",
              "url": "https://www.baishanjz.com",
              "logo": "https://www.baishanjz.com/logo.png",
              "contactPoint": {
                "@type": "ContactPoint",
                "telephone": "+86-400-123-4567",
                "contactType": "customer service",
                "availableLanguage": ["Chinese"]
              },
              "address": {
                "@type": "PostalAddress",
                "streetAddress": "朝阳区建国路88号",
                "addressLocality": "北京",
                "addressRegion": "北京市",
                "postalCode": "100000",
                "addressCountry": "CN"
              },
              "sameAs": [
                "https://weibo.com/baishanjz",
                "https://www.zhihu.com/org/baishanjz"
              ]
            }
          `}
        </Script>
      </head>
      <body className={inter.className}>
        <div className="flex flex-col min-h-screen">
          <Navbar />
          <main className="flex-grow pt-16">{children}</main>
          <Footer />
        </div>
      </body>
    </html>
  );
}
